package base;

import org.springframework.jdbc.core.JdbcTemplate;

import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;


public class BaseService {

	public BaseService(){
		
		MysqlDataSource dataSource = new MysqlDataSource();

		  dataSource.setUrl("jdbc:mysql://localhost:3306/order?useUnicode=true&characterEncoding=utf-8");
		  dataSource.setUser("root");
		  dataSource.setPassword("000000");
		  
		  this.setJdbcTemplate(new JdbcTemplate(dataSource));
}

	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

protected JdbcTemplate jdbcTemplate;
}
